<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="../share/taglib.jsp" %>
<%@ include file="../share/isReadOnly.inc" %>
<html>
<head>
<title><bean:message key="info.payType"/><bean:message key="display.manage"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/css/vip.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000" marginwidth="0" marginheight="0">
<html:form action="/cms/house/payType.do" method="post">
<html:hidden property="name"/>
<html:hidden property="method" value="list"/>
  <table width="98%" border="0" cellspacing="1" cellpadding="2" align="center">
    <tr>
      <td width="10%" bgcolor="#ffbe26"> <div align="center"><font color="#000000"><bean:message key="display.number"/></font></div></td>
      <td width="50%" bgcolor="#ffbe26"> <div align="center"><font color="#000000"><bean:message key="info.payType"/></font></div></td>
      <td width="30%" bgcolor="#ffbe26"> <div align="center"><font color="#000000">类型</font></div></td>
      <td width="5%" nowrap bgcolor="#ffbe26"> <div align="center"><font color="#000000"><bean:message key="display.edit"/></font></div></td>
      <td width="5%" nowrap bgcolor="#ffbe26"> <div align="center"><font color="#000000"><bean:message key="display.delete"/></font></div></td>
    </tr>
<!---------------------------LOOP START------------------------------>
<c:forEach items="${payTypeList}" var="entry">
    <tr>
      <td bgcolor="f5f5f5"><div align="center">${entry.payTypeId}</div></td>
      <td bgcolor="f5f5f5"><div align="center">${entry.name}</div></td>
      <td bgcolor="f5f5f5"><div align="center"><bean:message key="info.payType.type${entry.type eq 0 ? '0' : ''}"/></div></td>
      <td bgcolor="f5f5f5"><div align="center"><a href="<html:rewrite action="/cms/house/payType"/>?method=editUI&payTypeId=${entry.payTypeId}">
	  	<img src="/images/edit.gif" width="15" height="16" border="0"></a></div>
	  </td>
	  <td bgcolor="f5f5f5"><div align="center">
	  <% if (isReadOnly) { %>
	  	<img src="/images/delete.gif" style="cursor:hand;" width="15" height="16" border="0" />
	  <% } else { %>
	  	<a href="<html:rewrite action="/cms/house/payType"/>?method=delete&payTypeId=${entry.payTypeId}">
	  	<img src="/images/delete.gif" width="15" height="16" border="0"></a>
	  <% } %>
	  </div>
	  </td>
	</tr>
</c:forEach>
    <!----------------------LOOP END------------------------------->
    <tr> 
      <td bgcolor="f5f5f5" colspan="6" align="center"><table width="100%" border="0" cellspacing="1" cellpadding="3">
          <tr> 
            <td width="5%"></td>
              <td width="85%">
              <input name="AddDic" <%=isReadOnly ? "disabled='disabled'" : ""%> type="button" class="frm_btn" id="AddDic" onClick="javascript:window.location.href='<html:rewrite action="/cms/house/payType"/>?method=addUI'" value="<bean:message key="display.add"/><bean:message key="info.payType"/>"> &nbsp;&nbsp;
            </td>
          </tr>
        </table></td>
    </tr>
  </table>
</html:form>
</body>
</html>